package com.maschinenstuermer.example.ejb3.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Employee implements Serializable {
	private int id;
	private String surname;
	private String forename;

	public Employee() {
	}
	
	public Employee(String surname, String forename) {
		super();
		this.surname = surname;
		this.forename = forename;
	}

	@Column(name="SURNAME", nullable=false)
	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	@Column(name="FORENAME", nullable=false)
	public String getForename() {
		return forename;
	}

	public void setForename(String forename) {
		this.forename = forename;
	}

	@Id
	@Column(name="ID", nullable=false)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
}
